import service from "../../../libs/request";

/**
 * 新增或者修改
 * @param data
 * @constructor
 */
export function CreateOrUpdate(data){
    return service.request({
        url:"/admin/auth/menu/role-create",
        method:"post",
        data:data
    })
}

export function TreeData(data) {
    return service.request({
        url:"/admin/auth/menu/index",
        method:"post",
        data:data
    })
}

export function Delete(data) {
    return service.request({
        url:"/admin/auth/menu/delete",
        method:"post",
        data:data
    })
}
